import { service as  request } from '@/utils/request'








export function getAllComUser(companyId) {
    return request({
        url: `/hawk/system/user/get/company/${companyId}`,
        method: 'get'
    })
}



export function getList(data) {
    return request({
        url: `/sys-user/page/${data.current}/${data.size}`,
        method: 'get'
    })
}
export function doAdd(data) {
    return request({
        url: '/sys-user/',
        method: 'post',
        data
    })
}
export function doEdit(data) {
    return request({
        url: '/sys-user/',
        method: 'put',
        data
    })
}
export function doDelete(id) {
    return request({
        url: `/sys-user/${id}`,
        method: 'delete'
    })
}
export function getOne(id) {
    return request({
        url: `/sys-user/${id}`,
        method: 'get'
    })
}
export function getAll() {
    return request({
        url: `/hawk/user/list`,
        method: 'get'
    })
}